package com.gkd.springboot_employeeadmin.mapper;

import com.gkd.springboot_employeeadmin.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeMapper {
    List<Employee> allemp();
    int addEmploy(Employee employee);
    int updateEmp(Employee employee);

    Employee queryEmpById(int id);
    int deleteEmpById(int id);

    List<Employee> pagebean(int indexpage,int pageSize);

    int sumemp();
}
